//-----------------------------应用程序----------------------------------------------


#include <stdio.h>
#include <string.h>
#include <stdlib.h>

#include <fcntl.h>      // open() close()
#include <unistd.h>     // read() write()

#define DEVICE_NAME "/dev/driver_time"

//------------------------------------- main ---------------------------------------------
int main(int argc, char **argv)
{
	int fd,ret;
	fd = open(DEVICE_NAME, O_RDWR);

	if (fd == -1)
	{
		printf("can't open device mknod %s c zhu ci \n",DEVICE_NAME);
		return 0;
	}

	ioctl(fd, 1);
	while(1);
	
	// close 
	ret = close(fd);

	return 0;
}// end main